<div>
    <% _.each(orders, function(order) { %>
    <table class="table">
        <tr>
            <td>id</td>
            <td><%- order.id%></td>
        </tr>
        <tr>
            <td>createdAt</td>
            <td><%- order.createdAt%></td>
        </tr>
        <!--<tr>-->
            <!--<td>customerId</td>-->
            <!--<td><%- order.customerId%></td>-->
        <!--</tr>-->
        <tr>
            <td>wareCount</td>
            <td><%- order.wareCount%></td>
        </tr>
        <tr>
            <td>snapshotId</td>
            <td><%- order.snapshotId%></td>
        </tr>
        <tr>
            <td>money</td>
            <td><%- order.money%></td>
        </tr>
        <tr>
            <td>status</td>
            <td>
                <% if(order.status=='paid'){%>
                paid
                <% }else if(order.status=='cancelled'){ %>
                cancelled
                <% }else{ %>
                <input class="pay_order" data-orderid="<%- order.id%>" type="button" value="立即付款"/>
                <% } %>
            </td>
        </tr>
    </table>
    <% }); %>
</div>